package com.czn.service;

import com.czn.entity.Drugs;
import com.czn.vo.ResponseResult;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

/**
 * @author ChenZeNan
 * @create 2021-04-18 0:15
 */
public interface IDrugsService {

    PageQuery<Drugs> findDrugsList(Integer pageNo, Integer pageSize, String name, Integer type);

    Drugs findDrugById(Integer id);

    ResponseResult addDrug(Drugs drug);

    ResponseResult editDrug(Drugs drug);

    ResponseResult deleteDrugById(Integer id);

    List<Drugs> findAll();
}
